<?php
/**
 * Application dispatche routes
 *
 * This file is a subject under proprietary sofrware license
 *
 * @category
 * @package
 * @subpackage
 * @author      valerii lazarevych <lazarevuch@gmail.com>
 * @copyright   copyright(c) valerii lazarevych
 * @license     proprietary software license
 * @version     $Id: index.php 29.09.2012 2:56:06 valerii $
 */

$router = new Zend_Controller_Router_Rewrite();


$router->addRoute('newsList', 
     new Zend_Controller_Router_Route( 'news', array('controller'=>'index', 'action'=>'index'))
);

$router->addRoute('newsByPage', 
     new Zend_Controller_Router_Route( 'news/page/:pageId', array('controller' => 'index', 'action' => 'index'))
);

$router->addRoute('editnews',
     new Zend_Controller_Router_Route('editnews/:id', array('controller' => 'index', 'action' => 'editnews'))
);

$router->addRoute('savenews', 
     new Zend_Controller_Router_Route('savenews', array('controller' => 'index', 'action' => 'savenews'))
);

$router->addRoute('newsdelete', 
     new Zend_Controller_Router_Route('newsdelete/:id', array('controller' => 'index', 'action' => 'deletenews'))
);

